<?php
class RoleRecord extends Core_Record
{
    public function init()
    {
        $this->setAclResourceLabel('core/role/list');
        
        $tableRoles = new Core_Table_Roles();
        $this->setSource($tableRoles);
        
        $this->addField('id', array('title'=>'ID', 'order'=>true));
        $this->addField('name', array('title'=>'Name', 'order'=>true));
        $this->addField('email', array('title'=>'Email', 'order'=>true));

        //init buttons
        $this->addButton('remove', 'remove', array(
            'type'     => 'submit',
            'label'    => "Удалить",
            'attribs'  => array(
                'class' => 'negative',
                'icon'  => 'cross'
            ),     
        ));        
    }
    public function removeAction(array $values)
    {
        
    }
}
